package com.String;

public class StringConcat {
    public static void main(String[] args) {
        String a = "[";
        int[] arr1 = {1,2,3,4};
        for (int i = 0; i < arr1.length; i++) {
            int arrValue = arr1[i];
            String b = String.valueOf(arrValue);
            a = a.concat(b + ",");
        }
        a = a.substring(0,a.length()-1);
        // a = a + "]";
        a = a.concat("]");
        System.out.println(a);
    }
}
